xend: Tidy bootloader device constant.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 26 Apr 2007 08:51:39 +0000 (09:51 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 26 Apr 2007 08:51:39 +0000 (09:51 +0100)
In XendDomainInfo, BOOTLOADER_LOOPBACK_DEVICE is defined to be
'/dev/xvdp'.  However, there is still one place in this file that has
'/dev/xvdp' hard-coded.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/python/xen/xend/XendDomainInfo.py

index 0c519a4ee43b50bd76a376a0f89c4d07e3fdaf44..3630fe61d4ab5169dfe21c0e4ad079048aeedf37 100644 (file)
@@ -1820,7 +1820,7 @@ class XendDomainInfo:
                     log.info("Unmounting %s from %s." %
                              (fn, BOOTLOADER_LOOPBACK_DEVICE))
 
-                    dom0.destroyDevice('tap', '/dev/xvdp')
+                    dom0.destroyDevice('tap', BOOTLOADER_LOOPBACK_DEVICE)
 
             if blcfg is None:
                 msg = "Had a bootloader specified, but can't find disk"